package com.fcscs.cservice.client.common.model.restaurants;

import com.fcscs.core.common.MainEnums.HasDisplayString;
import com.fcscs.core.gwt.common.CoreConstants;
import com.fcscs.cservice.client.common.CServiceConstants;
import com.fcscs.share.gwt.common.ShareGWTConstants;

public enum RestaurantsSearchItemGWTEnum implements HasDisplayString {
	NAME(CoreConstants.CORE_CONSTANTS.name(), RestaurantSearchItemEnum.NAME, RestaurantSearchItemEnum.NAME
			.getIndex()), 
	BOOKINGSTATUS(
			CServiceConstants.CSERVICE_CONSTANTS.bookingStatus(), RestaurantSearchItemEnum.BOOKINGSTATUS,
			RestaurantSearchItemEnum.BOOKINGSTATUS.getIndex()), 
	DATE(ShareGWTConstants.SHARE_GWT_CONSTANTS.departureDate(),
			RestaurantSearchItemEnum.DATE, RestaurantSearchItemEnum.DATE.getIndex()),
	GUESTTYPE(
			CServiceConstants.CSERVICE_CONSTANTS.guestType(), RestaurantSearchItemEnum.GUESTTYPE,
			RestaurantSearchItemEnum.GUESTTYPE.getIndex());

	private String displayStr;
	private RestaurantSearchItemEnum itemEnum;
	private int index;

	private RestaurantsSearchItemGWTEnum(String displayStr, RestaurantSearchItemEnum itemEnum, int index) {
		this.displayStr = displayStr;
		this.itemEnum = itemEnum;
		this.index = index;
	}

	@Override
	public String getDisplayStr() {
		return displayStr;
	}

	public RestaurantSearchItemEnum getItemEnum() {
		return itemEnum;
	}

	public int getIndex() {
		return index;
	}
}
